<!--

    Copyright (c) 2010-2025 Eclipse Dirigible contributors

    All rights reserved. This program and the accompanying materials
    are made available under the terms of the Eclipse Public License v2.0
    which accompanies this distribution, and is available at
    http://www.eclipse.org/legal/epl-v20.html

    SPDX-FileCopyrightText: Eclipse Dirigible contributors
    SPDX-License-Identifier: EPL-2.0

-->
<!DOCTYPE HTML>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" ng-app="errorPage" ng-controller="ErrorPageController">

    <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="icon" href="data:;base64,iVBORw0KGgo=" brand-icon />
        <title config-title></title>
        <script>
            const viewData = {
                label: 'Unexpected Error Occurred',
                autoFocusTab: false
            };
        </script>
        <script type="text/javascript" src="/services/js/platform-core/services/loader.js?id=view-js"></script>
        <link type="text/css" rel="stylesheet" href="/services/js/platform-core/services/loader.js?id=view-css" />
    </head>

    <body class="bk-center" bk-scrollbar>
        <bk-message-page glyph="sap-icon--error">
            <bk-message-page-title>Unexpected Error Occurred</bk-message-page-title>
            <bk-message-page-subtitle class="bk-vbox bk-box--gap-m">
                <b>There was a problem serving the requested page.</b>
                Usually this means that an enexpected error happened while processing your request.
                Here's what you can try next:
                <i><b>Reload the page</b>, the problem may be temporary.
                    If the problem persists, <b>contact us</b>and we'll help get you on your way.</i>
            </bk-message-page-subtitle>
            <bk-message-page-actions class="bk-box--gap">
                <bk-button compact="true" label="Reload Page" state="emphasized" ng-click="reloadPage()"></bk-button>
                <bk-button compact="true" label="Contact Support" ng-click="contactSupport()"></bk-button>
            </bk-message-page-actions>
        </bk-message-page>

        <script>
            const errorPage = angular.module('errorPage', ['blimpKit', 'platformView']);
            errorPage.controller('ErrorPageController', ($scope) => {
                $scope.reloadPage = () => location.reload();
                $scope.contactSupport = () => window.open("https://bugs.dirigible.io", "_blank");
            });
        </script>
        <theme></theme>
    </body>

</html>
